<%--
  Created by IntelliJ IDEA.
  User: my
  Date: 2017/10/31
  Time: 8:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/"/>
</head>
<body>
<div class="pageContent">
    <form method="post" onsubmit="return iframeCallback(this, navTabAjaxDone);" action="five/manager/updateDesign" enctype="multipart/form-data" >
        <div class="pageFormContent" layoutH="56">
            <div class="unit">
                <label>上传头像文件：</label>
                <div class="upload-wrap">
                    <div class="thumbnail"></div>
                    <img src="files/show?name=${fivedesign.designLogo}"/>
                    <input type="file" name="photo" accept="image/*"/>
                </div>
            </div>
            <p>
                <input name="designId" type="hidden" value="${fivedesign.designId}"/>
            </p>
            <p>
                <label>设计师名字：</label>
                <input name="designName" type="text" size="30" value="${fivedesign.designName}"/>
            </p>
            <p>
                <label>城市：</label>
                <input name="designCity" class="required" type="text" size="30" value="${fivedesign.designCity}" />
            </p>
            <p>
                <label>设计师签名：</label>
                <input type="text" name="designSignature" value="${fivedesign.designSignature}"/>
            </p>
            <p>
                <label>个人简介：</label>
                <textarea   value="${fivedesign.designProduce}" name="designProduce" ></textarea>
            </p>
            <p>
                <label>获得奖项：</label>
                <input name="designFile"  value="${fivedesign.designFile}" type="text" size="30"/>
            </p>
            <p>
                <label>所属公司：</label>
                <select name="companyId" >
                    <c:forEach items="${companyList}" var="coml">
                        <c:choose>
                            <c:when test="${fivedesign.companyId == coml.companyId}">
                                <option value ="${coml.companyId}" selected="selected">${coml.companyName}</option>
                            </c:when>
                            <c:otherwise>
                                <option value ="${coml.companyId}" >${coml.companyName}</option>
                            </c:otherwise>
                        </c:choose>
                    </c:forEach>
                </select><br/>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>
</body>
</html>
